
@echo off
setlocal enabledelayedexpansion

set DIR="%cd%"

for   %%i in (*.txt) do (
  set fd=%%i
  set fd=!fd:~0,-11!        :: 剔除字符串末尾的11位, 包括文件后缀名

  :: md !fd!
  echo %%i   "==>"  !fd!

  :: copy /Y  "%%i"  "!fd!"
)
